/**
 * @Author:Geln Yang
 * @Created:2008-7-27 $ Revision: 1.0 $ $ Author: Geln Yang $ $ Date: 2008-7-27 $
 */
package org.geln.web.context;

import java.util.Locale;

/**
 * @Author:Geln Yang
 * @Created:2008-7-27
 */
public interface ISessionContext {
	public static final String REMOTE_HOST = "_REMOTE_HOST_";

	public static final String HTTP_SESSIONID = "_HTTP_SESSION_ID_";

	public static final String LOCALE = "_locale_";

	public static final String ACCOUNT = "_ACCOUNT_";

	public static final String ORIGINAL_URL = "ORIGINAL_URL";

	public Object getResource(Object key);

	public void bindResource(Object key, Object value) throws IllegalStateException;

	public Object unbindResource(Object key) throws IllegalStateException;

	public Locale getLocale();

	public String getAccount();

	public String getRemoteHost();

	public String getHttpSessionId();

	public void clearContext(String userId);

}
